package cn.com.generaldata.os.importpojo;

import java.util.Date;

import com.sun.xml.internal.bind.CycleRecoverable;

public class BillboardUser implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = 8876847118797223797L;

	private String id;
	private Unit user;
	private Billboard billboard;
	private String status;
	private Date lastReadTime;

	public BillboardUser() {
	}

	public BillboardUser(String id, Unit user, Billboard billboard) {
		this.id = id;
		this.user = user;
		this.billboard = billboard;
	}

	public BillboardUser(String id, Unit user, Billboard billboard, String status, Date lastReadTime) {
		this.id = id;
		this.user = user;
		this.billboard = billboard;
		this.status = status;
		this.lastReadTime = lastReadTime;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		BillboardUser temp = new BillboardUser();
		temp.setId(id);
		return temp;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Unit getUser() {
		return user;
	}

	public void setUser(Unit user) {
		this.user = user;
	}

	public Billboard getBillboard() {
		return billboard;
	}

	public void setBillboard(Billboard billboard) {
		this.billboard = billboard;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getLastReadTime() {
		return lastReadTime;
	}

	public void setLastReadTime(Date lastReadTime) {
		this.lastReadTime = lastReadTime;
	}

}
